<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;

class Activity extends Model
{
    //
    public  function getStatusAttribute($value){
        if($this->attributes['end_time']<Carbon::now()){
            return '过期活动';
        }else{
            return '预告活动';
        };
    }
}
